$(function() {
	$("input:button").click(function() {
		var value = $(this).val();
		changeCurPage(value);
	});
});

function changeCurPage(curPage){
	form = document.getElementById("pageForm");
	document.getElementById("page").value = curPage;
	form.submit();
}